//
//  MPSNetWorkOperationManager.h
//  MiaoPai
//
//  Created by jiaxuzhou on 2017/5/24.
//  Copyright © 2017年 jiaxuzhou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MPBNetWorking.h"


@interface MPSNetWorkOperationManager : NSOperation


+ (instancetype)shareOperationManager;

@property (nonatomic, strong) dispatch_queue_t gcdQueue;

@property (nonatomic, strong) dispatch_queue_t gcdAsynQueue;


@property (nonatomic, strong) dispatch_queue_t gcdSubQueue;

- (void)addOperationDelayMoreWithView:(UIView *)viewIndiView
                               params:(NSDictionary *)dicParams
                                  url:(NSString *)strUrl
                             uniqueId:(id)unique
                              success:(void (^)(MPBNetWorking *req,MPURLSessionTask *task,id unique))reqFinishedBlock
                               failed:(void (^)(MPBNetWorking *req,MPURLSessionTask *task,id unique))reqFailedBlock;

- (void)addOperationIgnoreMoreWithView:(UIView *)viewIndiView
                                params:(NSDictionary *)dicParams
                                   url:(NSString *)strUrl
                              uniqueId:(id)unique
                               success:(void (^)(MPBNetWorking *req,MPURLSessionTask *task,id unique))reqFinishedBlock
                                failed:(void (^)(MPBNetWorking *req,MPURLSessionTask *task,id unique))reqFailedBlock;

- (void)sendRequestWithParam:(NSDictionary *)dicParam url:(NSString *)strUrl;


@end
